package com.java.www;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;

public class Demo {
	public static void main(String[] args) throws IOException {
		File file = new File("f:\\abc\\123.txt");
		Reader r = new InputStreamReader(new FileInputStream(file));
		int i;
		while((i=r.read())!=-1) {
			System.out.print((char)i);
		}
		r.close();
	}
}
